package cn.congzhou.crm.utils;

import cn.congzhou.crm.query.ChartQueryObject;

public class ChangeMessage {

    public static String  changeMessage(ChartQueryObject qo){
        String msg=null;
        switch (qo.getGroupBy()){
            case "DATE_FORMAT(c.input_time, '%Y')": msg="年份";break;
            case "DATE_FORMAT(c.input_time, '%Y-%m')": msg="月份";break;
            case "DATE_FORMAT(c.input_time, '%Y-%m-%d')": msg="日期";break;
            default:msg="销售员";
        }
        return msg;
    }
}
